#include "inputdialog.h"
#include "ui_inputdialog.h"

InputDialog::InputDialog(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::InputDialog)
{
    ui->setupUi(this);
    this->setWindowTitle("请输入歌单名称");
}

InputDialog::~InputDialog()
{
    delete ui;
}

QString InputDialog::get_name()
{
    return ret;
}

void InputDialog::on_pushButton_clicked()
{
    ret = ui->lineEdit->text();
    this->close();
}
